/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application interFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         40;

deltaT          0.001;

writeControl    adjustableRunTime;

writeInterval   1.0;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           0.25;

maxAlphaCo      0.25;

maxDeltaT       1;

functions
{
    #includeIfPresent "../waveGaugesNProbes/surfaceElevation_controlDict";

/*    surfaceElevation
    {
        type            surfaceElevation;
        functionObjectLibs ( "libwaves2Foam.so" );
        
        outputControl   timeStep; // Alternative: outputTime
        outputInterval  1;
        
        // Additional output controls in waves2Foam
        // Set outputInterval = 1 and timeStep output control if surfaceSampleDeltaT is used.
        samplingStartTime 0; 
        surfaceSampleDeltaT 0.025; // Only an approximate output interval! No feedback on deltaT in the simulation
        
        setFormat raw;
        interpolationScheme cellPointFace;
        fields (alpha1);
        sets
        (
            gauge0
            {
                type        face;
                axis        y;

                start       (0.1 -0.3 0.005);
                end         (0.1 0.5 0.005);
                nPoints     100;
            }  
	    
            gauge1
            {
                type        face;
                axis        y;

                start       (2.0 -0.3 0.005);
                end         (2.0 0.5 0.005);
                nPoints     100;
            }  

            	    
            gauge2
            {
                type        face;
                axis        y;

                start       (4.0 -0.3 0.005);
                end         (4.0 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge3
            {
                type        face;
                axis        y;

                start       (5.2 -0.3 0.005);
                end         (5.2 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge4
            {
                type        face;
                axis        y;

                start       (10.5 -0.3 0.005);
                end         (10.5 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge5
            {
                type        face;
                axis        y;

                start       (12.5 -0.3 0.005);
                end         (12.5 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge6
            {
                type        face;
                axis        y;

                start       (13.5 -0.3 0.005);
                end         (13.5 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge7
            {
                type        face;
                axis        y;

                start       (14.5 -0.3 0.005);
                end         (14.5 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge8
            {
                type        face;
                axis        y;

                start       (15.7 -0.3 0.005);
                end         (15.7 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge9
            {
                type        face;
                axis        y;

                start       (17.3 -0.3 0.005);
                end         (17.3 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge10
            {
                type        face;
                axis        y;

                start       (19.0 -0.3 0.005);
                end         (19.0 0.5 0.005);
                nPoints     100;
            }  

	    
            gauge11
            {
                type        face;
                axis        y;

                start       (21.0 -0.3 0.005);
                end         (21.0 0.5 0.005);
                nPoints     100;
            }  
        );
    }*/
}

// ************************************************************************* //
